package com.mianshi;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class tonghuashun {
    public static void main(String[] args) {
        String[] m = {"000773","000001", "260104"};
        String[] n = {"000001","000003","260104"};
        List<String> list = new ArrayList<>();
        Set<String> set = new HashSet<>();
        for(String item : m){
            set.add(item);
        }
        for(String item : n){
            if(set.contains(item)){
                list.add(item);
            }
        }
    }
}
